<!--
 * @Author: 谢陈洁
 * @Date: 2025-06-07 18:33:58
 * @LastEditors: 谢陈洁
 * @LastEditTime: 2025-06-19 12:54:04
 * @Description: file content
-->
<template>
  <base-button
    type="delete"
    icon="Delete"
    :size="size"
    :circle="circle"
    :loading="loading"
    :disabled="disabled"
    @click="$emit('click', $event)"
  >
    <slot>删除</slot>
  </base-button>
</template>
<script lang="ts" setup>
  defineOptions({
    name: 'DelButton'
  })

  defineProps({
    size: {
      type: String as () => 'default' | 'small' | 'large',
      default: 'default'
    },
    circle: {
      type: Boolean,
      default: false
    },
    loading: {
      type: Boolean,
      default: false
    },
    disabled: {
      type: Boolean,
      default: false
    }
  })

  defineEmits(['click'])
</script>
